package com.von.springbootnetty.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author xiaosai
 * @version 1.0
 * @date 2022/3/16 17:34:07
 * @describe netty配置
 * @className
 */
/*@Component*/
public class NettyServerConfig {

    public static int serverPort;

    public static int getServerPort() {
        return serverPort;
    }

    @Value("${netty.server.port}")
    public static void setServerPort(int serverPort) {
        NettyServerConfig.serverPort = serverPort;
    }
}
